/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package yoda;

/**
 *
 * @author SphinX
 */
public class Yoda {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int a = 0;
        int b = 0;
        int c = 0;
        String s = "(We) [are] {blind}";
        String s1 = "";
        String s2 = "";
        String s3 = "";
        System.out.println(s);
        for(int i = 1; i < s.length();i++){
            
            if (s.charAt(i) == '(') a = i;
            if (s.charAt(i) == ')') s1 = s.substring(a+1,i);
            if (s.charAt(i) == '[') b = i;
            if (s.charAt(i) == ']') s2 = s.substring(b+1,i);
            if (s.charAt(i) == '{') c = i;
            if (s.charAt(i) == '}') s3 = s.substring(c+1,i);
        }
        s = s3.substring(0,1).toUpperCase()+s3.substring(1) + " " + s1.toLowerCase() + " " + s2.toLowerCase();
        System.out.println(s);
    }
}